<div class="modal-header">
    <h4 class="modal-title">公告信息</h4>
</div>
<div class="modal-body">
    <div class="container-fluid form-horizontal ">
      <div class="col-xs-12">
          <div class="form-group" >
              <label class="col-lg-3 control-label">商家名称</label>                       
              <div class="col-lg-4">
                  <ui-select ng-model="searchform.place" theme="bootstrap">
                      <ui-select-match placeholder="请选择一个商家">{{$select.selected.name}}</ui-select-match>
                      <ui-select-choices repeat="item as item in shopArr | filter: $select.search">
                          <span>{{item.name}}（{{item.code}}）</span>
                      </ui-select-choices>
                  </ui-select>
              </div>
          </div>
          <div class="form-group">
              <label class="col-xs-3 control-label">优惠名称</label>
              <div class="col-xs-4">
                <input type="text" class="form-control" ng-model="info.check_product_name">
              </div>
          </div>

          <!--<div class="form-group">
              <label class="col-xs-3 control-label">买单类型</label>
              <div class="col-xs-4">
                <input type="text" class="form-control" ng-model="info.check_type">
              </div>
          </div>-->
    

         <div class="form-group">
              <label class="col-xs-3 control-label">普通折扣</label>
                <div class="row ">
                    <div class="col-xs-1" style="">
                        <input type="text" class="form-control" min="0" value="0" ng-model="obj.check_product_satisfy">
                    </div>
                    <div class="col-xs-1 control-label"  style="width:5px">.</div>
                    <div class="col-xs-1" style="">
                        <input type="text" class="form-control" min="0" ng-model="obj.check_product_reduce">
                    </div>
                </div>
          </div>
          <div class="form-group">
              <label class="col-xs-3 control-label">VIP折扣</label>
                <div class="row ">
                    <div class="col-xs-1" style="">
                        <input type="text" class="form-control" min="0" ng-model="obj.check_product_satisfys">
                    </div>
                    <div class="col-xs-1 control-label"  style="width:5px">.</div>
                    <div class="col-xs-1" style="">
                        <input type="text" class="form-control" min="0" ng-model="obj.check_product_reduces">
                    </div>
                </div>
          </div>
          <div class="form-group">
              <label class="col-xs-3 control-label">所属卡类型</label>
              <div class="col-xs-4">
                  <select class="form-control" ng-model="info.card_type">
                      <option value='0'>普通卡</option>
                      <option value='1'>vip卡</option>
                  </select>
              </div>
          </div>
          <div class="form-group" style="padding:10px">
              <label class="col-xs-3 control-label">产品图片</label>
              <div class="col-sm-4">
                  <button class="btn m-b-xs w-sm btn-info" ng-click="image()">
                      <i class="fa fa-file-image-o"></i> 上传图片
                  </button>                    
              </div>
          </div>
          <div class="col-sm-8 col-sm-offset-3" style="" ng-repeat="item in array">           
              <div class="col-sm-4">
                  <img ng-src="{{item}}" width="100%" height="100"  ng-show="item.lastIndexOf('.pdf')=='-1'">
                  <a href= "{{item}}" target="_Blank" ng-show="item.lastIndexOf('.pdf')!='-1'">{{item}}</a>
                  <a type = 'button' class="btn-xs m-b-xs w-sm btn-danger" ng-click="del($index)">删除</a>	
              </div> 
          </div>  
         
          
      </div>
    </div>
</div>
<div class="modal-footer" ng-if="flag == 'create' || flag == 'edit'">
    <button class="btn btn-primary" type="button" ng-click="ok()">OK</button>
    <button class="btn btn-warning" type="button" ng-click="cancel()">返回</button>
</div>


